type github.com/gotd/td/telegram/downloader.cdn
27 uses
github.com/gotd/td/telegram/downloader (current package)
builder.go#L56: case *cdn:
cdn.go#L15: type cdn struct {
cdn.go#L58: var _ schema = (*cdn)(nil)
cdn.go#L85: ) *cdn {
cdn.go#L90: return &cdn{
cdn.go#L102: func (c *cdn) reportRetry(operation string, attempt int, err error) {
cdn.go#L113: func (c *cdn) Close() error {
cdn.go#L129: func (c *cdn) closeClient() {
cdn.go#L143: func (c *cdn) snapshot() (mode cdnMode, redirect *tg.UploadFileCDNRedirect, rev uint64) {
cdn.go#L150: func (c *cdn) setRedirect(redirect *tg.UploadFileCDNRedirect) {
cdn.go#L166: func (c *cdn) setMaster() {
cdn_state_machine.go#L13: func (c *cdn) ensureClient(ctx context.Context, dcID int) (CDN, error) {
cdn_state_machine.go#L48: func (c *cdn) activateRedirect(ctx context.Context, redirect *tg.UploadFileCDNRedirect) error {
cdn_state_machine.go#L60: func (c *cdn) recoverCDNControlError(
cdn_state_machine.go#L87: func (c *cdn) refreshRedirect(
cdn_state_machine.go#L142: func (c *cdn) Chunk(ctx context.Context, offset int64, limit int) (chunk, error) {
cdn_state_machine.go#L303: func (c *cdn) Hashes(ctx context.Context, offset int64) ([]tg.FileHash, error) {
cdn_verify.go#L18: func (c *cdn) resetHashes() {
cdn_verify.go#L25: func (c *cdn) resetWindows() {
cdn_verify.go#L34: func (c *cdn) cachedWindow(hash tg.FileHash) ([]byte, bool) {
cdn_verify.go#L50: func (c *cdn) cacheWindow(hash tg.FileHash, data []byte) {
cdn_verify.go#L74: func (c *cdn) cacheHashes(hashes []tg.FileHash) {
cdn_verify.go#L106: func (c *cdn) hash(offset int64) (tg.FileHash, bool) {
cdn_verify.go#L141: func (c *cdn) hashForOffset(ctx context.Context, offset int64) (tg.FileHash, error) {
cdn_verify.go#L181: func (c *cdn) loadAndVerifyWindow(ctx context.Context, hash tg.FileHash) ([]byte, error) {
cdn_verify.go#L226: func (c *cdn) verifyChunk(ctx context.Context, offset int64, requestedLimit int, data []byte) error {
cdn_verify.go#L314: func (c *cdn) decrypt(src []byte, offset int64, redirect *tg.UploadFileCDNRedirect) ([]byte, error) {
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |